﻿#ifndef MYSERVER_H
#define MYSERVER_H

#include <QObject>
#include <QTcpServer>
#include <QTcpSocket>
#include "CommonType.h"
#include "socketthread.h"
#pragma execution_character_set("utf-8")

class MyServer : public QObject
{
    Q_OBJECT
public:
    MyServer();
    bool start();
    void stop();

private:
    QTcpServer server;

private slots:
    void incomingConnection();
};

#endif // MYSERVER_H
